package com.adnaan.backend.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.Data;

import java.util.Date;

/**
 * author: adnaan
 * create: 2025-02-23 16:52
 * Description:
 */
@Data
@TableName("user_collect")
@Tag(name = "用户收藏表")
public class UserCollect {

    @Schema(name = "userId", description = "用户ID")
    @TableId(value = "user_id", type = IdType.INPUT)
    private Long userId;

    @Schema(name = "articleId", description = "文章ID")
    private Long articleId;

    @Schema(name = "collectTime", description = "收藏时间")
    private Date collectTime;

    @Schema(name = "title", description = "文章标题")
    @TableField(exist = false)
    private String title;

    @Schema(name = "cover", description = "文章封面")
    @TableField(exist = false)
    private String cover;

    @Schema(name = "description", description = "文章简介")
    @TableField(exist = false)
    private String description;

}
